import request from '@/utils/request'

// 查询样品回收列表
export function listRecovery(query) {
    return request({
        url: '/recovery/list',
        method: 'get',
        params: query
    })
}

// 查询样品回收详细
export function getRecovery(recoveryId) {
    return request({
        url: '/recovery/' + recoveryId,
        method: 'get'
    })
}

// 新增样品回收
export function addRecovery(data) {
    return request({
        url: '/recovery',
        method: 'post',
        data: data
    })
}

// 修改样品回收
export function updateRecovery(data) {
    return request({
        url: '/recovery',
        method: 'put',
        data: data
    })
}

// 删除样品回收
export function delRecovery(recoveryId) {
    return request({
        url: '/recovery/' + recoveryId,
        method: 'delete'
    })
}

export function listItem(query){
    return request({
        url:'/recovery/item',
        method:'get',
        params: query
    })
}
